package com.buybuyyi.stylistcrm.resource.goods.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.buybuyyi.stylistcrm.resource.goods.dao.GoodsYardageDao;
import com.buybuyyi.stylistcrm.resource.goods.mapper.GoodsYardageMapper;
import com.buybuyyi.stylistcrm.resource.goods.po.GoodsYardage;

@Repository
public class GoodsYardageDaoImpl implements  GoodsYardageDao{
	
	@Autowired
	private GoodsYardageMapper goodsYardageMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return goodsYardageMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(GoodsYardage record) {
		return goodsYardageMapper.insert(record);
	}

	@Override
	public int insertSelective(GoodsYardage record) {
		return goodsYardageMapper.insertSelective(record);
	}

	@Override
	public GoodsYardage selectByPrimaryKey(Long id) {
		return goodsYardageMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(GoodsYardage record) {
		return goodsYardageMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(GoodsYardage record) {
		return goodsYardageMapper.updateByPrimaryKey(record);
	}

	@Override
	public int deleteGoodsYardage(Long goodsId) {
		return goodsYardageMapper.deleteByPrimaryKey(goodsId);
	}

	@Override
	public List<GoodsYardage> getGoodsYardageByGoodId(GoodsYardage goodYardage) {
		return goodsYardageMapper.getGoodsYardageByGoodId(goodYardage);
	}
	
	 
}